// 前端上报，不会alert弹出错误
export function report(data = {}, isAlert = false) {
    setTimeout(() => {
        window.reportError(data, isAlert && WPT.isDeveloper);
    });
}

// 错误上报，会alert弹出错误
export function reportError(data = {}, isAlert = true) {
    setTimeout(() => {
        window.reportError(data, isAlert && WPT.isDeveloper);
    });
}
